import request from '@/utils/request';

export async function queryStockList() {
  return request(`/api/gold/all_company_info`, {});
}

export async function queryMarginTrading(page_num, page_size, start_time, end_time, stock_code) {
  return request(
    `/api/gold/margin_financing_list?page_num=${page_num}&page_size=${page_size}&start_time=${start_time}&end_time=${end_time}&stock_code=${stock_code}`,
    { page_num, page_size, start_time, end_time, stock_code }
  );
}

export async function queryInteractionList(page_num, page_size, type) {
  return request(
    `/api/gold/interactive_list?page_num=${page_num}&page_size=${page_size}&api_type=${type}`,
    { page_num, page_size, type }
  );
}
